body 
{ font-family: Arial, sans-serif; }

header {
    display: flex;
    padding: 10px 20px;
    align-items: center;
    border-bottom: 2px solid #000;
    justify-content: space-between;
}

.header-left .logo {
    font-size: 24px;
    font-weight: bold;
    text-decoration: none;
}

.header-center {
    gap: 15px;
    display: flex;
}

.nav-item {
    color: black;
    text-decoration: none;
}

.nav-item.active 
{ font-weight: bold; }

.header-right {
    gap: 15px;
    display: flex;
}

.auth-link {
    color: black;
    text-decoration: none;
}

.username 
{ font-weight: bold; }


.register {
    border: 1px solid #ccc;
    margin: 0 auto;
    padding: 20px;
    max-width: 400px;
    border-radius: 4px;
}

.register h1
{ text-align: center; }

.register div
{ margin-bottom: 10px; }

.register label {
    display: block;
    margin-bottom: 5px;
}

.register input {
    width: 100%;
    padding: 8px;
    box-sizing: border-box;
}

.register button {
    width: 100%;
    padding: 10px;
    background-color: #38a;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.login {
    max-width: 400px;
    margin: 0 auto;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.login h1 
{ text-align: center; }

.login div 
{ margin-bottom: 10px; }

.login label {
    display: block;
    margin-bottom: 5px;
}

.login input {
    width: 100%;
    padding: 8px;
    box-sizing: border-box;
}

.login button {
    width: 100%;
    padding: 10px;
    background-color: #38a;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}


.filters,
.accounts-table {
    max-width: 900px;
    margin: 20px auto;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.filters h2,
.accounts-table h2 {
    text-align: center;
}

.filters div,
.accounts-table th,
.accounts-table td {
    margin-bottom: 10px;
    padding: 8px;
    text-align: left;
}

.filters label {
    display: block;
    margin-bottom: 5px;
}

.filters input {
    width: 100%;
    padding: 8px;
    box-sizing: border-box;
}

.filters button {
    width: 100%;
    padding: 10px;
    background-color: #38a;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.accounts-table table {
    width: 100%;
    border-collapse: collapse;
}

.accounts-table th,
.accounts-table td {
    border: 1px solid #ddd;
    text-align: left;
    padding: 8px;
}


.accounts-table button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.accounts-table input {
    background: none;

    border:  0;
    outline: 0;

    appearance: none;
    -webkit-appearance: none;
}

.accounts-table tr:nth-child(even) {
    background-color: #f2f2f2;
}


.regions-form, .regions-table {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.regions-form h2, .regions-table h2 {
    text-align: center;
}

.regions-form div {
    margin-bottom: 10px;
}

.regions-form label {
    display: block;
    margin-bottom: 5px;
}

.regions-form input {
    width: 100%;
    padding: 8px;
    box-sizing: border-box;
}

.regions-form button {
    width: 100%;
    padding: 10px;
    background-color: #38a;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.regions-table table {
    width: 100%;
    border-collapse: collapse;
}

.regions-table th, .regions-table td {
    border: 1px solid #ddd;
    text-align: left;
    padding: 8px;
}

.regions-table tr:nth-child(even) {
    background-color: #f2f2f2;
}

.regions-table button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.regions-table input {
    background: none;

    width: 80%;

    border:  0;
    outline: 0;

    appearance: none;
    -webkit-appearance: none;
}



.region-types-form, .region-types-table {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.region-types-form h2, .region-types-table h2 {
    text-align: center;
}

.region-types-form div {
    margin-bottom: 10px;
}

.region-types-form label {
    display: block;
    margin-bottom: 5px;
}

.region-types-form input {
    width: 100%;
    padding: 8px;
    box-sizing: border-box;
}

.region-types-form button {
    width: 100%;
    padding: 10px;
    background-color: #38a;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}


.region-types-table table {
    width: 100%;
    border-collapse: collapse;
}

.region-types-table th, .region-types-table td {
    border: 1px solid #ddd;
    text-align: left;
    padding: 8px;
}

.region-types-table tr:nth-child(even) {
    background-color: #f2f2f2;
}

.region-types-table button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.region-types-table input {
    background: none;

    width: 80%;

    border:  0;
    outline: 0;

    appearance: none;
    -webkit-appearance: none;
}


.info-box {
    position: absolute;
    bottom: 10px;
    right: 10px;
    padding: 20px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    display: none;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 200px;
    z-index:2;
}


.message {
    margin-top: 10px;
    padding: 10px;
    border-radius: 4px;
    display: none;
}

.message.success {
    background-color: #dff0d8;
    color: #3c763d;
}

.message.error {
    background-color: #f2dede;
    color: #a94442;
}